package cn.com.surker.enums.mes;

import cn.com.surker.enums.ICodeDescEnum;
import cn.com.surker.enums.IDescription;

/**
 * @Author lucky
 * @create 2023年08月29 10:27
 * @desc
 */
public enum DeliveryEnum implements ICodeDescEnum {

    TRANSPORT(1,"运输中"),
    WAIT(0,"待接单"),
    SUCCESS(2,"已送达"),
    CANCEL(3,"已作废");

    private final String description;

    private final Integer code;

    DeliveryEnum(Integer code, String description) {
        this.description = description;
        this.code = code;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public Integer getCode() {
        return code;
    }
}
